package com.cloud.spring.entity;

import lombok.Data;

/**
 * All rights Reserved, Designed By Android_Robot
 *
 * @version V1.0
 * @Title: ErrorResponse.java
 * @Package com.rate.cloud.mybatis.exception
 * @Description:JSONAPI
 * @author: gaoheng
 * @date: 2017年11月19日 下午11:31:02
 */
@Data
public class JsonResponse {
    /**
     * 异常类型
     */
    private String errorType;
    /**
     * 异常代码
     */
    private String code;
    /**
     * 异常信息
     */
    private String message;
    /**
     * json主体信息
     */
    private Object data;
    /**
     * 异常发生路径
     */
    private String url;

    public JsonResponse() {
        super();
    }

    public JsonResponse(String errorType, String code, String message, String url, Object data) {
        super();
        this.errorType = errorType;
        this.code = code;
        this.message = message;
        this.url = url;
        this.data = data;
    }
}
